#define _CRT_SECURE_NO_WARNINGS 1

# include<bits/stdc++.h>
using namespace std;

int main()
{
    long long n;
    cin >> n;
    cout << n + 1;
    return 0;
}

# include<bits/stdc++.h>
using namespace std;

int main()
{
    int n;
    cin >> n;
    cout << n / 2 + n % 2;
    return 0;
}

# include<bits/stdc++.h>
using namespace std;

int main()
{
    int arr[6] = {};
    int sum = 0;
    for (int i = 0; i < 6; ++i)
    {
        cin >> arr[i];
    }
    sum += min(arr[0], arr[4]);
    sum += min(arr[1], arr[5]);
    sum += min(arr[2], arr[3]);
    cout << sum;
    return 0;
}
